import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, Route, hashHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import createStore from '../stores/index';
import './index.html';
import Home from '../containers/home';
import Page1 from '../containers/page1';

const store = createStore();
const history = syncHistoryWithStore(hashHistory, store)

render(
    <Provider store = {store}>
        <Router history={history}>
            <Route path="/" component={Home} />
            <Route path="/page1" component={Page1} />
        </Router>
    </Provider>,
    document.getElementById('root')
);
